package a.d.b;

import java.util.Comparator;

public class p
{
  protected r a;
  private d b;
  private d c;
  private d d;
  private d e;
  private x f;
  private x g;
  public static int h;
  
  public p(d paramd1, d paramd2, f paramf)
  {
    this.b = paramd1;
    this.c = paramd2;
    this.f = this.c.a().c(this.b.c()).b(this.b.a().c(this.c.c()));
    this.g = this.c.b().c(this.b.c()).b(this.b.b().c(this.c.c()));
    this.a = paramf;
    if (!bool) {
      if (this.a.a().compare(this.b, this.c) < 0)
      {
        this.d = this.b;
        this.e = this.c;
        if (!bool) {
          if (!e.a) {
            return;
          }
        }
      }
      else
      {
        this.d = this.c;
      }
    }
    this.e = this.b;
  }
  
  public p(d paramd1, d paramd2)
  {
    this(paramd1, paramd2, f.c());
  }
  
  public d a()
  {
    return this.b;
  }
  
  public d b()
  {
    return this.c;
  }
  
  public x c()
  {
    return this.f;
  }
  
  public x d()
  {
    return this.g;
  }
  
  public boolean f()
  {
    return this.b.equals(this.c);
  }
  
  public boolean a(d paramd)
  {
    boolean bool = e.b;
    if (!bool) {
      if (f()) {
        return this.b.equals(paramd);
      }
    }
    d locald1 = a();
    d locald2 = b();
    if (!bool) {
      if (this.a.a(locald1, locald2, paramd) != 0) {
        return false;
      }
    }
    Comparator localComparator = this.a.a();
    if (!bool) {
      if (localComparator.compare(this.d, paramd) <= 0)
      {
        if (bool) {
          break label112;
        }
        if (localComparator.compare(paramd, this.e) <= 0) {
          return true;
        }
      }
    }
    label112:
    return false;
  }
  
  public boolean b(d paramd)
  {
    boolean bool = e.b;
    if (!bool) {
      if (paramd.equals(this.b)) {
        return false;
      }
    }
    if (!bool) {
      if (paramd.equals(this.c)) {
        return false;
      }
    }
    return a(paramd);
  }
  
  public boolean a(p paramp)
  {
    boolean bool = e.b;
    if (!bool) {
      if (f()) {
        return paramp.a(this.b);
      }
    }
    if (!bool) {
      if (paramp.f()) {
        return a(paramp.a());
      }
    }
    int i = this.a.d(this, paramp.a());
    int j = this.a.d(this, paramp.b());
    int k = this.a.d(paramp, a());
    int m = this.a.d(paramp, b());
    if (!bool) {
      if (i == 0)
      {
        if (bool) {
          break label198;
        }
        if (j == 0)
        {
          if (!bool) {
            if (!paramp.a(a()))
            {
              if (bool) {
                break label192;
              }
              if (!paramp.a(b()))
              {
                if (bool) {
                  break label192;
                }
                if (!a(paramp.a())) {
                  if (bool) {
                    break label192;
                  }
                }
              }
            }
          }
          label192:
          return a(paramp.b());
        }
      }
    }
    label198:
    if (!bool)
    {
      if (i == j) {
        break label223;
      }
      if (bool) {
        break label220;
      }
    }
    label220:
    label223:
    return k != m;
  }
  
  public d b(p paramp)
  {
    boolean bool = e.b;
    d locald1 = this.b;
    d locald2 = this.c;
    d locald3 = paramp.a();
    d locald4 = paramp.b();
    if (!bool) {
      if (f())
      {
        if (paramp.a(locald1)) {
          return locald1;
        }
        return null;
      }
    }
    if (!bool) {
      if (paramp.f())
      {
        if (a(locald3)) {
          return locald3;
        }
        return null;
      }
    }
    int i = this.a.d(this, paramp.a());
    int j = this.a.d(this, paramp.b());
    int k = this.a.d(paramp, a());
    int m = this.a.d(paramp, b());
    if (!bool) {
      if (i == 0)
      {
        if (bool) {
          break label224;
        }
        if (j == 0)
        {
          if (!bool) {
            if (paramp.a(locald1)) {
              return locald1;
            }
          }
          if (!bool) {
            if (paramp.a(locald2)) {
              return locald2;
            }
          }
          if (!bool) {
            if (a(locald3)) {
              return locald3;
            }
          }
          if (a(locald4)) {
            return locald4;
          }
          return null;
        }
      }
    }
    label224:
    if ((bool) || ((i != j) && (k != m))) {
      return c(paramp);
    }
    return null;
  }
  
  public d c(p paramp)
  {
    d locald1 = this.b;
    d locald2 = this.c;
    d locald3 = paramp.a();
    d locald4 = paramp.b();
    x localx1 = this.g.c(paramp.c()).b(paramp.d().c(this.f));
    if (!e.b) {
      if (localx1.d() == 0) {
        return null;
      }
    }
    x localx2 = locald2.a().c(locald1.b()).b(locald1.a().c(locald2.b()));
    x localx3 = locald4.a().c(locald3.b()).b(locald3.a().c(locald4.b()));
    x localx4 = localx3.c(this.f).b(localx2.c(paramp.c()));
    x localx5 = localx3.c(this.g).b(localx2.c(paramp.d()));
    return new d(localx4, localx5, localx1);
  }
  
  public boolean equals(Object paramObject)
  {
    boolean bool = e.b;
    if (!bool) {
      if (paramObject == this) {
        return true;
      }
    }
    if (!bool) {
      if (!(paramObject instanceof p)) {
        return false;
      }
    }
    p localp = (p)paramObject;
    if (!bool) {
      if (!localp.a().equals(this.b)) {
        return false;
      }
    }
    if (!bool) {
      if (!localp.b().equals(this.c)) {
        return false;
      }
    }
    return true;
  }
  
  public int hashCode()
  {
    int i = this.b.hashCode();
    i = 31 * i + this.c.hashCode();
    return i;
  }
  
  public String toString()
  {
    return "[S: " + this.b + " - T:" + this.c + "]";
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.d.b.p
 * JD-Core Version:    0.7.0.1
 */